import java.util.Scanner;
public class One {

	public static void main(String[] args) {
		Scanner lector = new Scanner(System.in);
		System.out.println("Escriu 5 números");
		int[] arr = new int [5];
		for(int i =0;i<arr.length;i++){
			arr[i]= lector.nextInt();
		}
		int pet =9999999;
		for(int i =0;i<arr.length;i++){
			if (pet>arr[i]){
				pet=arr[i];
			}
		}
		System.out.println(pet);
	}

}
